/**
 * Created by leiweibo on 8/24/15.
 */

var app = angular.module('meservice', []);

app.factory('MeService', function($http, BaseService) {
  return {
    user_info:function(success) {
      $http.get(BaseService.baseUrl + '/user/info').success(success);
    },
    update_passwd: function(data, success, failure) {
      $http.put(BaseService.baseUrl + '/user/update_passwd', data).success(success).error(failure);
    }
  }
});
